build: clean up ostree-remount if building without systemd
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 28 Nov 2016 19:05:53 +0000 (19:05 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 29 Nov 2016 14:11:50 +0000 (14:11 +0000)
This is necessary for "make distcheck" on Travis-CI.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Closes: #600
Approved by: cgwalters

Makefile-decls.am
Makefile-switchroot.am
Makefile-tests.am

index df6357067a090c66c9b00ddc1fbfe28a20072117..e41586d1784496b363e659d56c3d07e13516442f 100644 (file)
@@ -46,6 +46,9 @@ gsettings_SCHEMAS =
 ostree_bootdir = $(prefix)/lib/ostree
 ostree_boot_PROGRAMS =
 
+# This initializes some more variables
+include $(top_srcdir)/buildutil/glib-tap.mk
+
 # This is a special facility to chain together hooks easily
 INSTALL_DATA_HOOKS =
 install-data-hook: $(INSTALL_DATA_HOOKS)
index 0b30a965d19ea9508bf1450a6f655eb81772b45e..6fd2f82075ec284e7e5147d49ec9c599efe8336b 100644 (file)
 
 if BUILDOPT_SYSTEMD
 ostree_boot_PROGRAMS += ostree-remount
+else
+# It is built anyway as a side-effect of having the symlink in tests/,
+# and if we declare it here, it gets cleaned up properly
+check_PROGRAMS += ostree-remount
 endif
 
 ostree_prepare_root_SOURCES = \
index 2160cd55880b900e69485d3e89363cc5e746475b..03e50b9b46f4dc0560d35c0d7ba4c5b4618b11ea 100644 (file)
@@ -17,8 +17,6 @@
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-include $(top_srcdir)/buildutil/glib-tap.mk
-
 EXTRA_DIST += \
        buildutil/tap-driver.sh \
        buildutil/tap-test \